Skip to content

use string to handle timestamp read/write#157

Merged
CoderZhi merged 2 commits intomasterfrom
tstring
Apr 21, 2025
Merged

use string to handle timestamp read/write#157
CoderZhi merged 2 commits intomasterfrom
tstring

Conversation

@dustinxie
Copy link
Copy Markdown
Contributor

No description provided.

heightQuery: fmt.Sprintf("SELECT MAX(height) FROM %s WHERE ? >= time AND EXISTS (SELECT * FROM %s WHERE ? <= time)", tableName, tableName),
mintTimeQuery: fmt.Sprintf("SELECT time FROM %s WHERE height = ?", tableName),
tipHeightQuery: fmt.Sprintf("SELECT MAX(height) FROM %s", tableName),
timeLayout: "2006-01-02 15:04:05-07:00",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the timestamp field layout in the poll.db, use it to correctly read/write/parse timestamp

@CoderZhi CoderZhi merged commit 5003f6b into master Apr 21, 2025
1 of 2 checks passed
@CoderZhi CoderZhi deleted the tstring branch April 21, 2025 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants